* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f0f2f5, #409EFF);
    color: #292c33;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 80px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 2px solid #e0e0e0;
    backdrop-filter: blur(0px);
    width: 540px;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    /* 初始状态为透明 */
    transition: opacity 0.7s ease-out;
    /* 添加过渡效果 */
}

/* 添加一个类来控制动画 */
.login-container.animate {
    animation: slideDown 0.7s ease-out forwards, bounce 0.3s ease-out 0.7s forwards;
    opacity: 1;
    /* 动画结束后变为不透明 */
}

h2 {
    /* color: #292C33; */
    margin-bottom: 20px;
    font-size: 28px;
    font-family: "Microsoft YaHei", sans-serif;
    letter-spacing: 0.7px;
}

h1 {
    /* color: #292C33; */
    margin-bottom: 46px;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 40px;
    letter-spacing: 1px;
}

.input-group {
    width: 60%;
    margin-bottom: 20px;
    margin-left: 76px;
}

input {
    /* color: rgba(40, 50, 60, 0.8); */
    width: 100%;
    padding: 7px;
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    border: 1px solid rgba(40, 50, 60, 0.8);
}

input::placeholder {
    /* color: rgba(40, 50, 60, 0.8) */
}

button {
    width: 60%;
    padding: 7px;
    background: #409EFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #66b1ff;
}

.error {
    color: red;
    margin-top: 10px;
}

/* 从上往下滑落的动画 */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        /* 初始位置在上方 */
        opacity: 0;
        /* 初始透明度 */
    }

    100% {
        transform: translateY(0);
        /* 最终位置 */
        opacity: 1;
        /* 最终透明度 */
    }
}

/* 回弹效果 */
@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
        /* 向上回弹 */
    }

    100% {
        transform: translateY(0);
        /* 回到最终位置 */
    }
}